//
//  GRVerificationCodeView.m
//  YC_GRice
//
//  Created by luojinrong11 on 2018/9/11.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRVerificationCodeView.h"

@implementation GRVerificationCodeView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (IBAction)confimAction:(id)sender {
    [self removeFromSuperview];
}

-(void)showCodeView:(NSString *)code QrCodeUrl:(NSString *)qrcodeUrl{
    UIWindow * window = [UIApplication sharedApplication].keyWindow;
    [self.qrCodeImageView sd_setImageWithURL:[NSURL URLWithString:qrcodeUrl] placeholderImage:[UIImage imageNamed:@""]];
    self.codeLabel.text = code;
    [window addSubview:self];
    [self mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(window);
    }];
    
}

@end
